package com.zeyi.chat.views;

import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;

/**
 * @author zeyi
 */
public class Menus extends ContextMenu {
    /**
     * 单例
     */
    private static Menus INSTANCE = null;

    private Menus()
    {
        MenuItem settingMenuItem = new MenuItem("设置");
        getItems().add(settingMenuItem);
    }

    /**
     * 获取实例
     * @return GlobalMenu
     */
    public static Menus getInstance()
    {
        if (INSTANCE == null)
        {
            INSTANCE = new Menus();
        }

        return INSTANCE;
    }
}
